package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CcsTeacherMapper;
import com.ruoyi.system.domain.CcsTeacher;
import com.ruoyi.system.service.ICcsTeacherService;

/**
 * 教师表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-21
 */
@Service
public class CcsTeacherServiceImpl implements ICcsTeacherService 
{
    @Autowired
    private CcsTeacherMapper ccsTeacherMapper;

    /**
     * 查询教师表
     * 
     * @param teacherNum 教师表主键
     * @return 教师表
     */
    @Override
    public CcsTeacher selectCcsTeacherByTeacherNum(Long teacherNum)
    {
        return ccsTeacherMapper.selectCcsTeacherByTeacherNum(teacherNum);
    }

    /**
     * 查询教师表列表
     * 
     * @param ccsTeacher 教师表
     * @return 教师表
     */
    @Override
    public List<CcsTeacher> selectCcsTeacherList(CcsTeacher ccsTeacher)
    {
        return ccsTeacherMapper.selectCcsTeacherList(ccsTeacher);
    }

    /**
     * 新增教师表
     * 
     * @param ccsTeacher 教师表
     * @return 结果
     */
    @Override
    public int insertCcsTeacher(CcsTeacher ccsTeacher)
    {
        return ccsTeacherMapper.insertCcsTeacher(ccsTeacher);
    }

    /**
     * 修改教师表
     * 
     * @param ccsTeacher 教师表
     * @return 结果
     */
    @Override
    public int updateCcsTeacher(CcsTeacher ccsTeacher)
    {
        return ccsTeacherMapper.updateCcsTeacher(ccsTeacher);
    }

    /**
     * 批量删除教师表
     * 
     * @param teacherNums 需要删除的教师表主键
     * @return 结果
     */
    @Override
    public int deleteCcsTeacherByTeacherNums(Long[] teacherNums)
    {
        return ccsTeacherMapper.deleteCcsTeacherByTeacherNums(teacherNums);
    }

    /**
     * 删除教师表信息
     * 
     * @param teacherNum 教师表主键
     * @return 结果
     */
    @Override
    public int deleteCcsTeacherByTeacherNum(Long teacherNum)
    {
        return ccsTeacherMapper.deleteCcsTeacherByTeacherNum(teacherNum);
    }
}
